﻿using HPIT.RentHouse.Common;
using HPIT.RentHouse.DTO;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace HPIT.RentHouse.IService
{
    public interface IPermissionService: IServiceSupport
    {
        List<PermissionDTO> GetList(); 
        PermissionDTO Get(long id);
        List<PermissionDTO> GetPagedList(int start, int length, string name, ref int count);
        AjaxResult Add(PermissionDTO dto);
        AjaxResult Update(PermissionDTO permissionDTO);
        AjaxResult Delete(long id);
        AjaxResult DeleteBatch(List<long> ids);
    }
}
